﻿using ETA.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETA.IService
{
    public interface IFlowLogService
    {

        /// <summary>
        /// 添加一条流程日志
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        CreateFlowLogResponse CreateFlowLog(CreateFlowLogRequest req);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        ModifyFlowLogResponse ModifyFlowLog(ModifyFlowLogRequest req);

        /// <summary>
        /// 检测该步骤是否已经走过
        /// </summary>
        /// <param name="log"></param>
        /// <returns></returns>
        bool IsFlowLogExists(FlowLog log);

        QueryFlowLogResponse QueryFlowLog(QueryFlowLogRequest req,out int count);

    }
}
